<?php

class Adept_Db_ActiveRecord_Proxy extends Adept_ClassKit_Proxy 
{
    
    protected $id;
    protected $class;
    
    public function __construct($id, $class) 
    {
        $this->id = $id;
        $this->class = $class;
    }

    public function getId() 
    {
        return $this->id;
    }

    public function setId($id) 
    {
        parent :: __call('setId', array($id));
    }
    
    public function getClass() 
    {
        return $this->class;
    }
    
    public function setClass($class) 
    {
        $this->class = $class;
    }
    
    protected function _createOriginalObject() 
    {
        $class = $this->class;
        $object = new $class();
        $object->loadById($this->id);
        return $object;
    }
    
}

